part of '../repository.dart';

class _SignignUpForbiddenResponseDto extends Equatable {
  const _SignignUpForbiddenResponseDto._internal({
    required this.emailVerificationCodeFound,
    this.emailVerificationCodeCorrect,
    this.emailVerificationCodeExpired,
    this.emailVerificationCodeSubmissionAttemptsOver,
  });

  final bool emailVerificationCodeFound;
  final bool? emailVerificationCodeCorrect;
  final bool? emailVerificationCodeExpired;
  final bool? emailVerificationCodeSubmissionAttemptsOver;

  @override
  List<Object?> get props {
    return [
      emailVerificationCodeFound,
      emailVerificationCodeCorrect,
      emailVerificationCodeExpired,
      emailVerificationCodeSubmissionAttemptsOver,
    ];
  }

  factory _SignignUpForbiddenResponseDto.fromJson(Map<String, dynamic> json) {
    return _SignignUpForbiddenResponseDto._internal(
      emailVerificationCodeFound: json['email_verification_code_found'],
      emailVerificationCodeCorrect: json['email_verification_code_correct'],
      emailVerificationCodeExpired: json['email_verification_code_expired'],
      emailVerificationCodeSubmissionAttemptsOver:
          json['email_verification_code_submission_attempts_over'],
    );
  }
}
